﻿
using System;
using Zo.IoC;
using ZoLone.Models;

namespace ZoLone.Logics
{
    /// <summary>
    /// 基础逻辑类
    /// </summary>
    public class BaseLogic
    {
        /// <summary>
        /// 表扩展名
        /// </summary>
        protected string table_prx="";
        /// <summary>
        /// 默认登录账户信息
        /// </summary>

        protected Account account
        {
            get => new Sys.AccountLogic().Get();
        }


        //设置数据提供器
        protected DataContext db { get; set; }

        protected BaseLogic()
        {
            db = IoCManager.Instance.GetService<DataContext>();
            
        }
    }
}
